package cvo.pro4.chess.client.pocDragDrop.WorkJo;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;

public class ChessGUI extends Composite {
	private HorizontalPanel topblock;
	private VerticalPanel centerblock;
	private HorizontalPanel bottomblock;
	private VerticalPanel rootpannel;
	
	private static ChessGUIBinder uiBinder = GWT
			.create(ChessGUIBinder.class);

	interface ChessGUIBinder extends UiBinder<Widget, ChessGUI> {
	}

	public ChessGUI() {
		BasicWidget a = new BasicWidget("Firstbutton", "firstlabeltext");
		BasicWidget b = new BasicWidget("SecondButton", "SecondLabeltext");
		this.topblock.add(a);
		this.bottomblock.add(b);
		this.rootpannel.add(topblock);
		this.rootpannel.add(centerblock);
		this.rootpannel.add(bottomblock);
		initWidget(uiBinder.createAndBindUi(this));
	}
	

	public HorizontalPanel getTopblock() {
		return topblock;
	}

	public void setTopblock(HorizontalPanel topblock) {
		this.topblock = topblock;
	}

	public VerticalPanel getCenterblock() {
		return centerblock;
	}

	public void setCenterblock(VerticalPanel centerblock) {
		this.centerblock = centerblock;
	}

	public HorizontalPanel getBottomblock() {
		return bottomblock;
	}

	public void setBottomblock(HorizontalPanel bottomblock) {
		this.bottomblock = bottomblock;
	}

	public VerticalPanel getRootpannel() {
		return rootpannel;
	}

	public void setRootpannel(VerticalPanel rootpannel) {
		this.rootpannel = rootpannel;
	}
}
